package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.Article;
import com.weipai.springboot.model.ArticleCategory;

import java.util.List;

/**
 * Created by ${lyh} on 2018/8/27.
 */
public interface ArticleDao {
    List<Article> selectAllByArticle(int articleStatus, String search, String way, String categoryId);

    Article getArticleById(String articleId);

    //修改
    int updateArticle(Article article);

    //保存
    int save(Article article);

    //文章的删除
    int delete(String articleId);

    //文章的分类
    List<ArticleCategory> articleCategoryList();
}
